#include "Fonts.h"
#include <cassert>

void Fonts::Init()
{
	sf::Font font;
	font.LoadFromFile("Consola.ttf");  
	m_fonts.insert(std::pair<std::string, sf::Font>("Consola", font));
}

void Fonts::Destroy()
{

}

sf::Font* Fonts::GetFont(std::string name)
{
	FontMap::iterator font = m_fonts.find(name);
	assert( font!=m_fonts.end() && "Fonts: GetFont < Font not found >" );

	return &font->second;
}